package com.example.springboot_zc.pojo;

import lombok.Data;

@Data
public class ApiMsg {
    private Boolean flag;
    private Object data;
    private String msg;

    public ApiMsg(){}

    public ApiMsg(Boolean flag){
        this.flag = flag;
    }

    public ApiMsg(Boolean flag, Object data){
        this.flag = flag;
        this.data = data;
    }

    public ApiMsg(Boolean flag, String msg){
        this.flag = flag;
        this.msg = msg;
    }

    public ApiMsg(String msg){
        this.flag = false;
        this.msg = msg;
    }
}
